home *** CD-ROM | disk | FTP | other *** search
- The Galaxy Software INI File OLE Server DLL allows the developer
- to access program initialization files (*.INI) using the standard
- object syntax that all MS Visual Basic programmers have become
- accustomed to. This OLE DLL was created with MS Visual Basic 4.0
- Professional Edition and has been tested under MS Windows 95. It
- should also function correctly under MS Windows NT 3.51 although
- this capability has not been tested.
-
- Note: To see a listing of the required parameters for each
- method and property please reference Object Browser
- on the View menu in the Visual Basic IDE interface.
-
- =================================================================
- Installation:
-
- To install this product on your computer all you need to do is
- run the setup program.
- 1) In Windows 95 click on the start menu and select run.
- 2) Type X:\Path\Setup.exe or click Browse and find setup.exe
- 3) Click on the OK button.
-
- To uninstall this product:
- 1) In Windows 95 click on the start menu and select Settings
- 2) Select the Control Panel option.
- 3) In control panel double click on Add/Remove Programs.
- 4) Select GalaxySoft INI File OLE Server and click remove.
-
- =================================================================
- The INI File OLE DLL contains the following objects:
-
- Object Description
- ------ -------------------------------------------------
- INIStr Allows access to string values.
- INIInt Allows access to integer values.
- INILng Allows access to long integer values.
- INISgl Allows access to floating point single values.
- INIDbl Allows access to floating point double values.
-
- =================================================================
- Each of the above objects contain the following methods:
-
- Method Description
- ----------------- -----------------------------------------
- obj.Register Registers the object to the specified INI
- file, section, and key. Also allows you
- to specify a default value.
- obj.RemoveKey Deletes registered key from the INI file.
- obj.RemoveSection Deletes the registered section and all
- associated keys from the INI file.
-
- =================================================================
- Each of the above objects contain the following properties:
-
- Property Description
- ----------- -----------------------------------------------
- obj.File Returns the INI file path and filename that was
- set in the Register method. The return data
- type is string. (read-only)
- obj.Section Returns the section set in the Register method.
- The return data type is string. (read-only)
- obj.Key Returns the key set in the Register method.
- The return data type is string. (read-only)
- obj.Default Returns the default value set in the Register
- method. The return data type is determined by
- the object type. Ex: INIDbl returns double,
- INIStr returns string. (read-only)
- obj.Value Sets or returns the value for the INI file,
- section, and key that were set in the Register
- method. The data type is determined by the
- object type. Ex: INIInt is integer, INILng is
- long. This property will return the default
- value if the specified file, section, or key
- cannot be found.
- obj.Version Returns the version number of the object. The
- return data type is string. (read-only)
-
- =================================================================
- The INI File OLE Server DLL traps and throws the follwing error
- conditions:
-
- Constant Value Description
- ---------------------------- ----- ------------------------
- gknISErrInvalidSection 1001 This error occurs if an
- empty string is provided
- for the section in the
- Register method.
- gknISErrInvalidKey 1002 This error occurs if an
- empty string is provided
- for the key in Register
- method.
- gknISErrINIBaseNotRegistered 1003 This error occurs if any
- of the properties except
- for Version are accessed
- before Register method
- is invoked.
-
- Per Microsoft recomendation the returned error values will be the
- value shown in the table above plus the vbObjectError constant
- from Visual Basic.
-
- These constants are defined in the IniConst.bas file.
-
- =================================================================
- Examples:
-
- Before using an INI file object you must first create the
- object. An example is shown below.
-
- Private moINIStr As New IniFileServer.INIStr
-
- Now that you have an object variable defined you must use the
- Register method to initialize it to a specific ini file,
- section and key.
-
- moINIStr.Register sSection, sKey, sDefault, sFile
-
- Note: The Register method also has a 5th parameter of
- type boolean. If TRUE this parameter forces the
- value to be obtained from the INI file each time
- the Value property is read. If FALSE the value is
- read from the INI file only the first time the
- Value property is read. The default for this
- parameter is FALSE.
- Note: The Register method can be called multiple times
- on the same object. This procedure reinitializes
- the existing INI file object and does not create a
- new object.
-
- Now that you have registered the object you can access the
- other methods and properties as required.
-
- sValue = moINIStr.Value 'Get value of the specified
- 'key.
- moINIStr.Value = sValue 'Set value of the specified
- 'key.
-
- sFile = moINIStr.File 'Get the registered file path
- 'and name.
- sSection = moINIStr.Section 'Get registered section name.
- sKey = moINIStr.Key 'Get the registered key name.
- sDefault = moINIStr.Default 'Get registered default value
- sVersion = moINIStr.Version 'Get version number of the
- 'object.
-
- moINIStr.RemoveSection 'Deletes registered section
- 'and all associated keys from
- 'the ini file.
- moINIStr.RemoveKey 'Deletes registered key from
- 'the ini file.
-
- =================================================================
- Technical Support:
-
- You can contact Galaxy Software for technical support, questions
- or comments by any of the following methods:
-
- Snail Mail: Galaxy Software
- 7044 St. Joe Road
- Fort Wayne, IN 46835
-
- E-Mail:
- Internet: galaxysoft@msn.com
- AOL: GalaxySoft
- MSN: GalaxySoft
- Compuserve: 102167,2656
-
- World Wide Web: http://users.aol.com/galaxysoft/
-
- =================================================================
- Legal stuff:
-
- The Galaxy Software INI File OLE Server DLL is copyrighted
- SHAREWARE. This is not freeware and cannot be redistributed as a
- component of your projects until you have registered the product.
- You are free to evaluate this product for 30 days after which if
- you intend to continue using it you will be required to register.
- You are free to distribute this product to other developers for
- evaluation purposes only and only if the entire package is intact
- as when it was received by you. Please refer to register.txt for
- information on registering this product.
-
- Copyright ⌐ 1996 - Galaxy Software
-